package cn.marinda.resturants.entity;

import cn.marinda.resturants.annotation.UserAnnotation;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;

/** Users实体类
 *
 * @Author Marinda
 * @Date 2021/11/15
 */
@UserAnnotation
@Data
@TableName("r_users")
public class User extends Roles {
    public User()
    {

    }
    public User(String uid,String memberUid)
    {
        this.uid = uid;
        this.memberUid = memberUid;
    }
    @TableId(value = "uid",type = IdType.UUID)
    private String uid;
    @TableField(value = "member_uid")
    private String memberUid;
    @TableField(value = "login_date")
    private String LoginDate;
    @TableField(value = "register_date")
    private String RegisterDate;
    @TableField(value = "vochers")
    private BigDecimal vochers;
    @Version
    private int version;
}
